﻿@model IEnumerable<KRM.Core.tblKRMStockOrder>
@{
    ViewBag.Title = "Stock Order";
    Layout = "~/Views/Shared/_PopupLayout.cshtml";
}

<div style="padding: 10px">
    <fieldset>
        <legend>Currently Waiting Stock Orders</legend>
        <table class="table table-bordered table-fix">
            <thead>
                <tr>
                    <th></th>
                    <th>PartID</th>
                    <th>Qty</th>
                    <th>SupplierID</th>
                    <th>DateGenerated</th>
                    <th>ExpectedArrivalDate</th>
                    <th>PurchaseOrderNumber</th>
                    <th>ArrivalDate</th>
                    <th>QtyReceived</th>
                    <th>Arrived</th>
                    <th>DailyOrderRate</th>
                    <th>Confirmed</th>
                    <th>TempStockOrderId</th>
                    <th>PricePerSKU</th>
                    <th>NotifySent</th>
                    <th>Overdue</th>
                    <th>ShippingDate</th>
                    <th>PortArrivalDate</th>
                    <th>CustomsClearanceDate</th>
                    <th>Container</th>
                    <th>StockOrderType</th>
                    <th>UserCreatedID</th>
                    <th>UserConfirmed</th>
                    <th>UserRecieved</th>
                    <th>ManufacturingSiteId</th>
                    <th>IsDelete</th>
                    <th>CurrencyID</th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr>
                        <td><a href="/stockcontrol/removestockorder/@item.StockOrderId" class="btn btn-danger" title="Remove Stock Order" onclick="return confirm('Are you sure?')"><i class="icon-remove"></i></a></td>
                        <td>@item.PartId</td>
                        <td>@item.Qty</td>
                        <td>@item.SupplierId</td>
                        <td>@item.DateGenerated</td>
                        <td>@item.ExpectedArrivalDate</td>
                        <td>@item.PurchaseOrderNumber</td>
                        <td>@item.ArrivalDate</td>
                        <td>@item.QtyReceived</td>
                        <td>@item.Arrived</td>
                        <td>@item.DailyOrderRate</td>
                        <td>@item.Confirmed</td>
                        <td>@item.TempStockOrderId</td>
                        <td>@item.PricePerSKU</td>
                        <td>@item.NotifySent</td>
                        <td>@item.Overdue</td>
                        <td>@item.Shipping_Date</td>
                        <td>@item.Port_Arrival_Date</td>
                        <td>@item.Customs_Clearance_Date</td>
                        <td>@item.Container</td>
                        <td>@item.StockOrderType</td>
                        <td>@item.UserCreatedID</td>
                        <td>@item.UserConfirmed</td>
                        <td>@item.UserRecieved</td>
                        <td>@item.ManufacturingSiteId</td>
                        <td>@item.IsDelete</td>
                        <td>@item.CurrencyID</td>
                    </tr>
                }
            </tbody>
        </table>
    </fieldset>
</div>
